const list = {
   news: [],
   pop: [],
   sell: [] 
};

const template = [
   {
      title: '短袖女新款超火纯棉小款上衣女夏短款高腰牛油果绿t恤ins潮',
      image: 'https://s5.mogucdn.com/mlcdn/c45406/200308_157b9201bfehb95bcj9321j974811_6399x8532.jpg_750x1000.v1cAC.81.jpg',
      collect: 3,
      saller: '29.90'
   },
   {
      title: '韩版字母刺绣吊带背心女夏百搭外穿无袖t恤衫显瘦内搭打底衫上衣',
      image: 'https://s11.mogucdn.com/mlcdn/c45406/200616_29h8643725b0076183bdkkdi0848e_3999x5999.jpg_750x1000.v1cAC.81.jpg',
      collect: 75,
      saller: '49.99'
   },
   {
      title: '短袖T恤女夏季ins潮网红2021年新款纯棉宽松打底白色上衣',
      image: 'https://s5.mogucdn.com/mlcdn/c45406/200626_0bfb9h7elk4gj89k29dl3g1e1kke1_5000x7500.jpg_750x1000.v1cAC.81.jpg',
      collect: 75,
      saller: '39.90'
   },
   {
      title: '碎花连衣裙女夏季2021新款小个子显瘦中长款清新甜美裙子',
      image: 'https://s5.mogucdn.com/mlcdn/c45406/210601_267gbde4g0kj67j0f6blh95d5l8af_5332x7999.jpg_750x1000.v1cAC.81.jpg',
      collect: 735,
      saller: '51.26'
   },
   {
      title: '木耳边泡泡袖连衣裙女夏季新款法式V领系带收腰小个子短裙子',
      image: 'https://s5.mogucdn.com/mlcdn/55cf19/210620_20i5142145c8069dc5ba9h2deja07_640x960.jpg_750x1000.v1cAC.81.jpg',
      collect: 35,
      saller: '74.90'
   },
   {
      title: '高端四排扣调整型小胸加厚女蚕丝蛋白棉收副乳无钢圈聚拢',
      image: 'https://s5.mogucdn.com/mlcdn/c45406/200320_2hhcdlk8k5kgh16f301ff39aeklj0_640x960.jpg_750x1000.v1cAC.81.jpg',
      collect: 753,
      saller: '69.90'
   },
   {
      title: '韩版防晒衣女夏装新款大码条纹衬衫宽松显瘦雪纺防晒服超薄开衫',
      image: 'https://s5.mogucdn.com/mlcdn/c45406/210620_51c29fefleiejjalc326g0690ag30_640x960.jpg_750x1000.v1cAC.81.jpg',
      collect: 715,
      saller: '70.00'
   },
   {
      title: '卡其色风衣女中长款2021新款气质韩版宽松收腰大衣外套春季',
      image: 'https://s5.mogucdn.com/mlcdn/c45406/200807_6hbl63a136ecafk570jia4f6d8ffd_640x960.jpg_750x1000.v1cAC.81.jpg',
      collect: 5,
      saller: '239.90'
   },
   {
      title: '2021新款宽松黑色短裤女夏bf高腰运动休闲裤五分裤直筒港味',
      image: 'https://s5.mogucdn.com/mlcdn/c45406/200628_0fbg2hebhc446e86l4e72l29g46bl_5000x7500.jpg_750x1000.v1cAC.81.jpg',
      collect: 715,
      saller: '35.00'
   },
   {
      title: '连衣裙女夏季2021年新款气质修身设计感小众时尚拼接洋气减龄裙子',
      image: 'https://s11.mogucdn.com/mlcdn/55cf19/210619_2ci1e3f7fb42dj0019fid0a0k4h0c_640x960.jpg_750x1000.v1cAC.81.jpg',
      collect: 34,
      saller: '55.04'
   },
];

let tabIndex = [0,0,0];
for (let index = 0; index <1000; index++) {
   let newRandom = Math.floor(Math.random()*10);
   let popRandom = Math.floor(Math.random()*10);
   let sellRandom = Math.floor(Math.random()*10);

   if(newRandom === tabIndex[0]) {
     newRandom = (newRandom - 1 + 9) % 9;
   }
   if(popRandom === tabIndex[1]) {
      popRandom = (popRandom - 1 + 9) % 9; 
    }
   if(sellRandom === tabIndex[2]) {
      sellRandom = (sellRandom - 1 + 9) % 9;
   }
   list.news.push(template[newRandom]); 
   list.pop.push(template[popRandom]);
   list.sell.push(template[sellRandom]);

   tabIndex = [newRandom, popRandom, sellRandom];
}

export default list;